import instance from '../../axios.service';
import {PersonItem, PersonStatus, ResDto, UserAuthType} from "../../types/common";
import {basePath} from '../config'
export default {
    getList: (status?: PersonStatus): Promise<ResDto> => instance.get(`${basePath}/apply-admin/user/list`),// 用户列表
    edit: (data: PersonItem): Promise<ResDto> => instance.post(`${basePath}/apply-admin/user/edit`, data),// 编辑用户
    add: (data: PersonItem): Promise<ResDto> => instance.post(`${basePath}/apply-admin/user/add`, data),// 添加用户
    editAuth: (data: {id: string, authType: UserAuthType}): Promise<ResDto> => instance.post(`${basePath}/apply-admin/user/edit-auth`, data),// 编辑用户权限

}
